package com.hantanger.weblog.model;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

@Cache
@Entity
public class Tag {
    //日志标签,一篇日志可以有多个标签， 标签名称作为其key_name
	
	@Id private String name;
	
	@Index
    private int allCount; //所有日志数量
    
    private int publicCount;//      #公开的日志数量
	
    private int publishedCount;//   #已经发布的日志数量

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAllCount() {
		return allCount;
	}

	public void setAllCount(int allCount) {
		this.allCount = allCount;
	}

	public int getPublicCount() {
		return publicCount;
	}

	public void setPublicCount(int publicCount) {
		this.publicCount = publicCount;
	}

	public int getPublishedCount() {
		return publishedCount;
	}

	public void setPublishedCount(int publishedCount) {
		this.publishedCount = publishedCount;
	}
}
